package com.ls.springbootdemo.common.enums;

import lombok.Getter;

/**
 * @author 挥之以墨
 */
@Getter
public enum ResponseCode {
    /**
     * 响应码
     */
    SUCCESS(200, "请求成功"),
    COMMON_ERROR(5001, "请求异常");

    private Integer code;
    private String msg;

    ResponseCode(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
